{% load i18n %}
{% if case %}
    {% for c in case %}
        <dl class="caseblock">
            {% if c.img %}
                <dt><a href="/case/{{ c.id }}" target="_blank">{% if c.img %}
                    <img src="/file/{{ c.img }}-280x210" alt="">
                {% endif %}</a></dt>
            {% endif %}
            <dd>
                <h2><a href="/case/{{ c.id }}" target="_blank" title="{{ c.name|striptags }}">{{ c.name|striptags }}</a></h2>
                {% if c.img %}
                    <p>{{ c.brief|truncatechars:65 }}</p>
                {% else %}
                    <p>{{ c.brief|truncatechars:300 }}</p>
                {% endif %}

                <div class="fix"><input type="button" value="{% trans 'more' %}"
                                        onclick="javascript:location.href='/case/{{ c.id }}'"/><span>
                    {% ifequal LANGUAGE_CODE 'en' %}
                        {{ c.industry.name }}
                    {% else %}
                        {{ c.industry.name_cn }}
                    {% endifequal %}
                </span>
                </div>
            </dd>
        </dl>
    {% endfor %}
{% endif %}